//
// Created by kongkong on 2016/11/6.
// Copyright (c) 2016 Kongkong. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol KKRequestProtocol <NSObject>
@optional
@property(nonatomic, strong) NSString *api;
@property(nonatomic, strong) NSString *action;
@property(nonatomic, strong) NSDictionary *params;

+ (id <KKRequestProtocol>)api:(NSString *)api action:(NSString *)action;

- (id <KKRequestProtocol>)parameter:(NSDictionary *)parameter;

- (void)async:(void (^)(id __nullable response, id __nullable result))completion;
@end